package chapter20.homework3;

public class Finance implements Department{
    private  Mediator mediator;//经理老哥
    public Finance(Mediator mediator) {
        super();
        this.mediator = mediator;
        mediator.register("Finance", this);
    }

    @Override
    public void selfaction() {
        // TODO 自动生成的方法存根
        System.out.print("数钱");
    }

    @Override
    public void outaction() {
        // TODO 自动生成的方法存根
        System.out.println("钱太多了，该咋花");
    }

}
